﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

/// <summary>
/// Summary description for CarpoolTime
/// </summary>
public class Schedule : BaseBO {
	protected User user;
	protected Destination from;
	protected Carpool carpool;
	protected DayOfWeek dayOfWeek;
	protected int departureHour;
	protected int returnHour;

	public User User {
		get { return this.user; }
		set { this.user = value; }
	}

	public Destination From {
		get { return this.from; }
		set { this.from = value; }
	}

	public Carpool Carpool {
		get { return this.carpool; }
		set { this.carpool = value; }
	}

	public DayOfWeek DayOfWeek {
		get { return this.dayOfWeek; }
		set { this.dayOfWeek = value; }
	}

	public int DepartureHour {
		get { return this.departureHour; }
		set { this.departureHour = value; }
	}

	public int ReturnHour {
		get { return this.returnHour; }
		set { this.returnHour = value; }
	}

	public Schedule() {}

	public Schedule(User user, Destination from, DayOfWeek dayOfWeek, int departureHour, int returnHour) {
		this.user = user;
		this.from = from;
		this.dayOfWeek = dayOfWeek;
		this.departureHour = departureHour;
		this.returnHour = returnHour;
	}
}
